/***********************************************************************
 * Module:  BackpropagitionTrainingMethod.java
 * Author:  Mladen
 * Purpose: Defines the Class BackpropagitionTrainingMethod
 ***********************************************************************/

package raf.training;

public class BackpropagitionTrainingMethod implements TrainingMethod {
	private int maxIterations;

	private int currentIteration;

	private Double error;

	public boolean hasFinished() {
		return currentIteration == maxIterations;
	}

	public void resetError() {
		error = 0.0;
	}

	public Double addError(Double err) {
		error += err;
		return error;
	}

	public int getCurrentIteration() {
		return currentIteration;
	}

}